<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>QCNSim: FacilityServer Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">QCNSim
   </div>
   <div id="projectbrief">Simulator for Quake-Catcher Network</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="class_facility_server-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">FacilityServer Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="class_facility.html" title="Facility class. ">Facility</a> Server class.  
 <a href="class_facility_server.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_facility_server_8h_source.html">FacilityServer.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:a9efed12bb4444cde79707b3f9d73ce2f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_facility_server.html#a9efed12bb4444cde79707b3f9d73ce2f">FacilityServer</a> ()</td></tr>
<tr class="memdesc:a9efed12bb4444cde79707b3f9d73ce2f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor.  <a href="#a9efed12bb4444cde79707b3f9d73ce2f">More...</a><br/></td></tr>
<tr class="separator:a9efed12bb4444cde79707b3f9d73ce2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a616e532a5429a2463b8cbaf01563e84a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_facility_server.html#a616e532a5429a2463b8cbaf01563e84a">isBusy</a></td></tr>
<tr class="memdesc:a616e532a5429a2463b8cbaf01563e84a"><td class="mdescLeft">&#160;</td><td class="mdescRight">True if busy; false if available.  <a href="#a616e532a5429a2463b8cbaf01563e84a">More...</a><br/></td></tr>
<tr class="separator:a616e532a5429a2463b8cbaf01563e84a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3910f6ed09e723baa88c59ed36d6f5b6"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; const <a class="el" href="class_token.html">Token</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_facility_server.html#a3910f6ed09e723baa88c59ed36d6f5b6">token</a></td></tr>
<tr class="memdesc:a3910f6ed09e723baa88c59ed36d6f5b6"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_token.html" title="Token class. ">Token</a> currently being processed at this server.  <a href="#a3910f6ed09e723baa88c59ed36d6f5b6">More...</a><br/></td></tr>
<tr class="separator:a3910f6ed09e723baa88c59ed36d6f5b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac6e0d183c115c071f4492cc0f68da08"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_facility_server.html#aac6e0d183c115c071f4492cc0f68da08">releasedTokensCount</a></td></tr>
<tr class="memdesc:aac6e0d183c115c071f4492cc0f68da08"><td class="mdescLeft">&#160;</td><td class="mdescRight">Count of tokens served by this server.  <a href="#aac6e0d183c115c071f4492cc0f68da08">More...</a><br/></td></tr>
<tr class="separator:aac6e0d183c115c071f4492cc0f68da08"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7245d4b48e944975bcc4534479b289d6"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_facility_server.html#a7245d4b48e944975bcc4534479b289d6">serviceStartTime</a></td></tr>
<tr class="memdesc:a7245d4b48e944975bcc4534479b289d6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Absolute time at which processing has started.  <a href="#a7245d4b48e944975bcc4534479b289d6">More...</a><br/></td></tr>
<tr class="separator:a7245d4b48e944975bcc4534479b289d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adade92de99bb3ac83815679c04976fd1"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_facility_server.html#adade92de99bb3ac83815679c04976fd1">sumBusyTime</a></td></tr>
<tr class="memdesc:adade92de99bb3ac83815679c04976fd1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sum (integral) of time server was busy up to this moment.  <a href="#adade92de99bb3ac83815679c04976fd1">More...</a><br/></td></tr>
<tr class="separator:adade92de99bb3ac83815679c04976fd1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:ae090afa77613543409d2f0c4c1cd6f4f"><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_facility_server.html#ae090afa77613543409d2f0c4c1cd6f4f">Facility</a></td></tr>
<tr class="separator:ae090afa77613543409d2f0c4c1cd6f4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="class_facility.html" title="Facility class. ">Facility</a> Server class. </p>
<dl class="section author"><dt>Author</dt><dd>Marcos Portnoi </dd></dl>
<dl class="section date"><dt>Date</dt><dd>May 2013</dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>Copyright (C) 2013 University of Delaware. </dd>
<dd>
QCNSim uses elements of TARVOS simulator, Copyright (C) 2005, 2006, 2007 Marcos Portnoi. </dd></dl>
<dl class="section user"><dt></dt><dd>This file is part of QCNSim. QCNSim is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.<br/>
 QCNSim is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.<br/>
 You should have received a copy of the GNU Lesser General Public License along with QCNSim. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. </dd></dl>
<dl class="section user"><dt>Description</dt><dd>This class models a server within a facility. </dd></dl>

<p>Definition at line <a class="el" href="_facility_server_8h_source.html#l00032">32</a> of file <a class="el" href="_facility_server_8h_source.html">FacilityServer.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a9efed12bb4444cde79707b3f9d73ce2f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">FacilityServer::FacilityServer </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Default constructor. </p>
<dl class="section author"><dt>Author</dt><dd>Marcos Portnoi </dd></dl>
<dl class="section date"><dt>Date</dt><dd>May 2013</dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>Copyright (C) 2013 University of Delaware. </dd>
<dd>
QCNSim uses elements of TARVOS simulator, Copyright (C) 2005, 2006, 2007 Marcos Portnoi. </dd></dl>
<dl class="section user"><dt></dt><dd>This file is part of QCNSim. QCNSim is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.<br/>
 QCNSim is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.<br/>
 You should have received a copy of the GNU Lesser General Public License along with QCNSim. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. </dd></dl>

<p>Definition at line <a class="el" href="_facility_server_8cpp_source.html#l00025">25</a> of file <a class="el" href="_facility_server_8cpp_source.html">FacilityServer.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;                              : <a class="code" href="class_facility_server.html#a616e532a5429a2463b8cbaf01563e84a">isBusy</a>(<span class="keyword">false</span>), <a class="code" href="class_facility_server.html#a3910f6ed09e723baa88c59ed36d6f5b6">token</a>(), <a class="code" href="class_facility_server.html#aac6e0d183c115c071f4492cc0f68da08">releasedTokensCount</a>(0), <a class="code" href="class_facility_server.html#a7245d4b48e944975bcc4534479b289d6">serviceStartTime</a>(0.0), <a class="code" href="class_facility_server.html#adade92de99bb3ac83815679c04976fd1">sumBusyTime</a>(0.0) {   </div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;}<div class="ttc" id="class_facility_server_html_aac6e0d183c115c071f4492cc0f68da08"><div class="ttname"><a href="class_facility_server.html#aac6e0d183c115c071f4492cc0f68da08">FacilityServer::releasedTokensCount</a></div><div class="ttdeci">unsigned int releasedTokensCount</div><div class="ttdoc">Count of tokens served by this server. </div><div class="ttdef"><b>Definition:</b> <a href="_facility_server_8h_source.html#l00036">FacilityServer.h:36</a></div></div>
<div class="ttc" id="class_facility_server_html_a3910f6ed09e723baa88c59ed36d6f5b6"><div class="ttname"><a href="class_facility_server.html#a3910f6ed09e723baa88c59ed36d6f5b6">FacilityServer::token</a></div><div class="ttdeci">std::shared_ptr&lt; const Token &gt; token</div><div class="ttdoc">Token currently being processed at this server. </div><div class="ttdef"><b>Definition:</b> <a href="_facility_server_8h_source.html#l00035">FacilityServer.h:35</a></div></div>
<div class="ttc" id="class_facility_server_html_a7245d4b48e944975bcc4534479b289d6"><div class="ttname"><a href="class_facility_server.html#a7245d4b48e944975bcc4534479b289d6">FacilityServer::serviceStartTime</a></div><div class="ttdeci">double serviceStartTime</div><div class="ttdoc">Absolute time at which processing has started. </div><div class="ttdef"><b>Definition:</b> <a href="_facility_server_8h_source.html#l00037">FacilityServer.h:37</a></div></div>
<div class="ttc" id="class_facility_server_html_a616e532a5429a2463b8cbaf01563e84a"><div class="ttname"><a href="class_facility_server.html#a616e532a5429a2463b8cbaf01563e84a">FacilityServer::isBusy</a></div><div class="ttdeci">bool isBusy</div><div class="ttdoc">True if busy; false if available. </div><div class="ttdef"><b>Definition:</b> <a href="_facility_server_8h_source.html#l00034">FacilityServer.h:34</a></div></div>
<div class="ttc" id="class_facility_server_html_adade92de99bb3ac83815679c04976fd1"><div class="ttname"><a href="class_facility_server.html#adade92de99bb3ac83815679c04976fd1">FacilityServer::sumBusyTime</a></div><div class="ttdeci">double sumBusyTime</div><div class="ttdoc">Sum (integral) of time server was busy up to this moment. </div><div class="ttdef"><b>Definition:</b> <a href="_facility_server_8h_source.html#l00038">FacilityServer.h:38</a></div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a class="anchor" id="ae090afa77613543409d2f0c4c1cd6f4f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">friend class <a class="el" href="class_facility.html">Facility</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_facility_server_8h_source.html#l00043">43</a> of file <a class="el" href="_facility_server_8h_source.html">FacilityServer.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a616e532a5429a2463b8cbaf01563e84a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool FacilityServer::isBusy</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>True if busy; false if available. </p>

<p>Definition at line <a class="el" href="_facility_server_8h_source.html#l00034">34</a> of file <a class="el" href="_facility_server_8h_source.html">FacilityServer.h</a>.</p>

</div>
</div>
<a class="anchor" id="aac6e0d183c115c071f4492cc0f68da08"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int FacilityServer::releasedTokensCount</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Count of tokens served by this server. </p>

<p>Definition at line <a class="el" href="_facility_server_8h_source.html#l00036">36</a> of file <a class="el" href="_facility_server_8h_source.html">FacilityServer.h</a>.</p>

</div>
</div>
<a class="anchor" id="a7245d4b48e944975bcc4534479b289d6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double FacilityServer::serviceStartTime</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Absolute time at which processing has started. </p>

<p>Definition at line <a class="el" href="_facility_server_8h_source.html#l00037">37</a> of file <a class="el" href="_facility_server_8h_source.html">FacilityServer.h</a>.</p>

</div>
</div>
<a class="anchor" id="adade92de99bb3ac83815679c04976fd1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double FacilityServer::sumBusyTime</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Sum (integral) of time server was busy up to this moment. </p>

<p>Definition at line <a class="el" href="_facility_server_8h_source.html#l00038">38</a> of file <a class="el" href="_facility_server_8h_source.html">FacilityServer.h</a>.</p>

</div>
</div>
<a class="anchor" id="a3910f6ed09e723baa88c59ed36d6f5b6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt;const <a class="el" href="class_token.html">Token</a>&gt; FacilityServer::token</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p><a class="el" href="class_token.html" title="Token class. ">Token</a> currently being processed at this server. </p>

<p>Definition at line <a class="el" href="_facility_server_8h_source.html#l00035">35</a> of file <a class="el" href="_facility_server_8h_source.html">FacilityServer.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>QcnSim/<a class="el" href="_facility_server_8h_source.html">FacilityServer.h</a></li>
<li>QcnSim/<a class="el" href="_facility_server_8cpp_source.html">FacilityServer.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 15 2014 10:33:16 for QCNSim by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>
